<template>
    <el-dialog
        :model-value="modelValue"
        title=""
        width="900"
        :align-center="true"
        :close-on-click-modal="false"
        :close-on-press-escape="false"
        :show-close="false"
    >
        <div class="title">2024年XXXX考试</div>
        <div class="content">
            <div class="left">
                <div class="left-item">
                    <span class="label">姓名：</span>
                    张三
                </div>
                <div class="left-item">
                    <span class="label">证号：</span>
                    123456789
                </div>
                <div class="left-item">
                    <span class="label">时间：</span>
                    2024年3月21日21:30
                </div>
            </div>
            <div class="right">
                <img src="@assets/img/dialog-avatar.png" alt="" />
            </div>
        </div>
        <div class="footer">
            <el-button class="confirm-btn" type="primary" @click="confirmHandle">
                确认&继续
            </el-button>
        </div>
    </el-dialog>
</template>

<script setup>
import { ref } from 'vue'
const props = defineProps({
    modelValue: Boolean,
})

const emit = defineEmits(['update:modelValue'])

function confirmHandle() {
    emit('update:modelValue', false)
}
</script>

<style lang="less" scoped>
.title {
    padding-bottom: 34px;
    font-size: 36px;
    color: #333333;
    text-align: center;
}
.content {
    margin: 0 auto;
    padding: 48px 70px;
    width: 778px;
    height: 290px;
    border-top: 2px dotted #d8d8d8;
    border-bottom: 2px dotted #d8d8d8;
    display: flex;
    .left {
        width: 550px;
        font-size: 24px;
        color: #333333;
        &-item {
            margin-bottom: 52px;
        }
        .label {
            color: #666666;
        }
    }
    .right {
        width: 170px;
        img {
            width: 170px;
            height: 208px;
        }
    }
}
.footer {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    .confirm-btn {
        margin-bottom: 30px;
        width: 330px;
        height: 74px;
        background-color: #397efd;
        font-size: 30px;
    }
}
</style>
